package ren.kane.phoenix.design.singleton;

/**
 * 饿汉式单例模式.
 *
 * @author renrk(1275) on 2018-10-07 7:46 PM
 **/
public class Singleton {

    private static final Singleton INSTANCE = new Singleton();

    private Singleton() {
    }

    public static Singleton getInstance() {
        return INSTANCE;
    }

    public void showMassage() {
        System.out.println("hello world");
    }
}
